<template>
  <div class="tools-widgets">
    <!-- <div class="tools-widgets-header">{{ configData.title }}</div> -->
    <div class="tools-widgets-body">
      <ToolBar
        v-for="item in configData.toolsList"
        :key="item.handle"
        :config-data="item"
      />
    </div>
  </div>
</template>

<script>
import ToolBar from "@/cesiumWidgets/CesiumToolsWidgets/components/ToolBar.vue";
export default {
  name: "ToolsWidgets",
  props: {
    configData: {
      type: Object,
      default: () => {},
    },
  },
  components: {
    ToolBar,
  },
};
</script>

<style  lang="scss" scoped>
.tools-widgets {
  width: 100%;
  min-height: 30px;
  font-size: 12px;
  .tools-widgets-header {
    position: relative;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    &:after {
      content: "";
      position: absolute;
      height: 1px;
      width: 34%;
      background-color: #aaa;
      top: 14px;
      left: 10px;
    }
    &::before {
      content: "";
      position: absolute;
      height: 1px;
      width: 34%;
      background-color: #aaa;
      top: 14px;
      right: 10px;
    }
  }
  .tools-widgets-body {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
  }
}
</style>